package com.example.boot1.service.impl;

import org.springframework.stereotype.Service;

import org.springframework.beans.factory.annotation.Autowired;

import com.example.boot1.mapper.VueUnitMapper;
import com.example.boot1.bean.VueUnit;
import com.example.boot1.service.VueUnitService;

import java.util.List;

@Service
public class VueUnitServiceImpl implements VueUnitService{

    @Autowired
    private VueUnitMapper vueUnitMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return vueUnitMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(VueUnit record) {
        return vueUnitMapper.insert(record);
    }

    @Override
    public int insertSelective(VueUnit record) {
        return vueUnitMapper.insertSelective(record);
    }

    @Override
    public VueUnit selectByPrimaryKey(Integer id) {
        return vueUnitMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(VueUnit record) {
        return vueUnitMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(VueUnit record) {
        return vueUnitMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<VueUnit> getUnit() {
        return vueUnitMapper.getUnit();
    }

    @Override
    public List<VueUnit> findByValue(String unit) {
        return vueUnitMapper.findByValue(unit);
    }

}
